import { FormProps, FormSchema } from '/@/components/Table';
import { BasicColumn } from '/@/components/Table/src/types/table';
import { h } from 'vue';
import { UploadTypeEnum } from '/@/components/Form/src/jeecg/components/JUpload';


export const uploadQrForm : FormSchema[] = [
	{
		label: '二维码上传',
		field: 'url',
		component: 'JUpload',
		helpMessage: '最多上传1张图片',
		componentProps: {
			fileType: UploadTypeEnum.image,
			maxCount: 1,
		},
		required: true
	},
	{
		label: '',
		field: 'id',
		component: 'Input',
		show: false
	},
];


export const uploadStatsForm : FormSchema[] = [
	{
		label: '状态选择',
		field: 'stats',
		component: 'JDictSelectTag',
		componentProps:{
		    options:[
				{value:'WaitTravel',label:'待出行'},
				{value:'TravelOver',label:'结束行程'},
				{value:'Clustered',label:'已成团'},
				{value:'Cancel',label:'下架'},
				{value:'Wait',label:'上架'}
			]	
		},
		required: true
	},
	
	{
		label: '',
		field: 'id',
		component: 'Input',
		show: false
	},
];